From 8b53aa66e6f17ee208f2f6b65c473ca907f057d0 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Wed, 31 Aug 2016 16:26:49 +0100 Subject: [PATCH] arm: acpi/boot.c is only used during initialisation That file should contain code and data used during initialisation only. Mark it as such in build system and correctly annotate enabled_cpus. Signed-off-by: Wei Liu Reviewed-by: Julien Grall --- xen/arch/arm/acpi/Makefile | 2 +- xen/arch/arm/acpi/boot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/acpi/Makefile b/xen/arch/arm/acpi/Makefile index 196c40ab13..23963f8fa0 100644 --- a/xen/arch/arm/acpi/Makefile +++ b/xen/arch/arm/acpi/Makefile @@ -1,2 +1,2 @@ obj-y += lib.o -obj-y += boot.o +obj-y += boot.init.o diff --git a/xen/arch/arm/acpi/boot.c b/xen/arch/arm/acpi/boot.c index 28b34507fe..c3242a04ea 100644 --- a/xen/arch/arm/acpi/boot.c +++ b/xen/arch/arm/acpi/boot.c @@ -37,7 +37,7 @@ #include /* Processors with enabled flag and sane MPIDR */ -static unsigned int enabled_cpus = 1; +static unsigned int __initdata enabled_cpus = 1; static bool __initdata bootcpu_valid; /* total number of cpus in this system */ -- 2.30.2